import $axios from "../utils/request"
//验证手机号是否可以注册
export function docheckphone(data){
    return $axios.post("/user/docheckphone",data)
}
//发送验证码
export function dosendmsgcode(data){
    return $axios.post("/user/dosendmsgcode",data)
}
//验证验证码
export function docheckcode(data){
    return $axios.post("/user/docheckcode",data)
}
//注册
export function dofinishregister(data){
    return $axios.post("/user/dofinishregister",data)
}
//登录
export function dologin(data){
    return $axios.post("/user/login",data)
}
//修改密码
export function updatePassword(params){
    return $axios.get("/user/updatePassword",{params})
}
//获取用户信息
export function userInfo(params){
    return $axios.get("/user/info",{params})
}
//地址列表
export function addressList(params){
    return $axios.get("/address/list",{params})
}
//添加地址
export function addAddress(data){
    return $axios.post("/address/add",data)
}
//删除地址
export function deleteAddress(data){
    return $axios.post("/address/delete",data)
}
//更新地址
export function updateAddress(data){
    return $axios.post("/address/update",data)
}
